package com.kmzx.one.project.net;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.List;

@ApiModel(value = "购物车参数")
public class CartParam {

    @ApiModelProperty(value = "购物车id", required = true, notes = "购物车id")
    private List<String> ids;

    @ApiModelProperty(value = "地址id", required = true, notes = "地址id")
    private String addressId;

    @ApiModelProperty(value = "用户id", required = true, notes = "用户id")
    private String userId;

    @ApiModelProperty(value = "用户身份证", required = false, notes = "用户身份证")
    private String idCard;

    @ApiModelProperty(value = "用户姓名", required = false, notes = "用户姓名")
    private String realName;

    private BigDecimal amount;

    private int use;

    private String postCode;

    private int account;

    private String phone;

    private String say;

    public int getAccount() {
        return account;
    }

    public CartParam setAccount(int account) {
        this.account = account;
        return this;
    }

    public int getUse() {
        return use;
    }

    public CartParam setUse(int use) {
        this.use = use;
        return this;
    }

    public String getPostCode() {
        return postCode;
    }

    public CartParam setPostCode(String postCode) {
        this.postCode = postCode;
        return this;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public CartParam setAmount(BigDecimal amount) {
        this.amount = amount;
        return this;
    }

    public List<String> getIds() {
        return ids;
    }

    public CartParam setIds(List<String> ids) {
        this.ids = ids;
        return this;
    }

    public String getAddressId() {
        return addressId;
    }

    public CartParam setAddressId(String addressId) {
        this.addressId = addressId;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public CartParam setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public String getIdCard() {
        return idCard;
    }

    public CartParam setIdCard(String idCard) {
        this.idCard = idCard;
        return this;
    }

    public String getRealName() {
        return realName;
    }

    public CartParam setRealName(String realName) {
        this.realName = realName;
        return this;
    }


    public String getPhone() {
        return phone;
    }

    public CartParam setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getSay() {
        return say;
    }

    public CartParam setSay(String say) {
        this.say = say;
        return this;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("CartParam{");
        sb.append("ids=").append(ids);
        sb.append(", addressId='").append(addressId).append('\'');
        sb.append(", userId='").append(userId).append('\'');
        sb.append(", idCard='").append(idCard).append('\'');
        sb.append(", realName='").append(realName).append('\'');
        sb.append(", amount=").append(amount);
        sb.append(", use=").append(use);
        sb.append(", postCode='").append(postCode).append('\'');
        sb.append(", account=").append(account);
        sb.append('}');
        return sb.toString();
    }
}
